<h2>Sản phẩm</h2>
<div class="panel-group category-products" id="accordian"><!--category-productsr-->
<?php
    $modelProductCat=new Default_Model_Productcat();
    $modelProductItem=new Default_Model_Productitem();
    $productCatList=$modelProductCat->getDataDisplay();    
    foreach($productCatList as $proCat){
        $productItemList[]=$modelProductItem->getDataByCatId($proCat['catId']);
    }
    $i=0;    
    //pr($productItemList);
    foreach($productCatList as $proCat){
        $i++;
?>
        <div class="panel panel-default">
    		<div class="panel-heading">
    			<h4 class="panel-title">
    				<a data-toggle="collapse" data-parent="#accordian" href="#<?=$proCat['catCode']?>">
    					<span class="badge pull-right">
                        <?php if(count($productItemList[$i-1])){
                            echo "<i class='fa fa-plus'></i>";
                        }?>                            
                        </span>
    					<?=$proCat['catName']?>
    				</a>
    			</h4>
    		</div>
            <?php 
                if(count($productItemList[$i-1])){?>          
            <div id="<?=$proCat['catCode']?>" class="panel-collapse collapse">
    			<div class="panel-body">
    				<ul>
                    <?php
                        foreach($productItemList[$i-1] as $proItem){
                    ?>
                            <li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'product', 'action'=>'index', 'itemId'=>$proItem['itemId']))?>"><?=$proItem['itemName']?> </a></li>
                    <?php
                        } 
                    ?>    																                        
    				</ul>
    			</div>
    		</div>  
            <?php 
                }?>                    		            
    	</div>                         
<?php
    }
?>															
</div><!--/category-products-->

<div class="brands_products"><!--brands_products-->
	<h2>Brands</h2>
	<div class="brands-name">
		<ul class="nav nav-pills nav-stacked">
			<li><a href="#"> <span class="pull-right">(50)</span>Acne</a></li>									
		</ul>
	</div>
</div><!--/brands_products-->												

<div class="shipping text-center"><!--shipping-->
	<img src="/static/default/images/home/shipping.jpg" alt="" />
</div><!--/shipping-->